package com.study.demo_jsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @ClassName: HelloController
 * @Description:
 * @author: WS
 * @date 2020/12/10
 * @Version: 1.0
 **/
@Controller
public class HelloController {
    @GetMapping("/hello")
    public String sayHello(Model model,String name){
        model.addAttribute("name",name);
        return "hello";
    }
}
